#ifndef BBCPODCAST_H
#define BBCPODCAST_H

#include <QObject>
#include <QWidget>
/*#include <QPlainTextEdit>
#include <QStackedWidget>
*/
#include <QtNetwork/QNetworkReply>
#include <QStringList>
#include <QLabel>
#include <QProcess>

class bbcpodcast : public QWidget
{
  Q_OBJECT
public:
  bbcpodcast(QWidget *parent=0);
  //protected:
  //void test();

private slots:
  void getPodcast();
  void replyFinished(QNetworkReply*);
  void playNext();
  void directToNext();
  
 private:
  QStringList podcastLinks;
  QStringList podcastTitles;
  int linkIndex;

  QProcess *mplayer;
  
  QLabel *statusLabel;
};


#endif
